package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.ClassAllbudgetBiMapper;
import com.ruoyi.quartz.domain.ClassAllbudgetBi;
import com.ruoyi.quartz.service.IClassAllbudgetBiService;

/**
 * ClassAllbudgetBiService业务层处理
 * 
 * @author SYF
 * @date 2025-06-10
 */
@Service
public class ClassAllbudgetBiServiceImpl implements IClassAllbudgetBiService 
{
    @Autowired
    private ClassAllbudgetBiMapper classAllbudgetBiMapper;

    /**
     * 查询ClassAllbudgetBi
     * 
     * @param year ClassAllbudgetBi主键
     * @return ClassAllbudgetBi
     */
    @Override
    public ClassAllbudgetBi selectClassAllbudgetBiByYear(String year)
    {
        return classAllbudgetBiMapper.selectClassAllbudgetBiByYear(year);
    }

    /**
     * 查询ClassAllbudgetBi列表
     * 
     * @param classAllbudgetBi ClassAllbudgetBi
     * @return ClassAllbudgetBi
     */
    @Override
    public List<ClassAllbudgetBi> selectClassAllbudgetBiList(ClassAllbudgetBi classAllbudgetBi)
    {
        return classAllbudgetBiMapper.selectClassAllbudgetBiList(classAllbudgetBi);
    }

    /**
     * 新增ClassAllbudgetBi
     * 
     * @param classAllbudgetBi ClassAllbudgetBi
     * @return 结果
     */
    @Override
    public int insertClassAllbudgetBi(ClassAllbudgetBi classAllbudgetBi)
    {
        return classAllbudgetBiMapper.insertClassAllbudgetBi(classAllbudgetBi);
    }

    /**
     * 修改ClassAllbudgetBi
     * 
     * @param classAllbudgetBi ClassAllbudgetBi
     * @return 结果
     */
    @Override
    public int updateClassAllbudgetBi(ClassAllbudgetBi classAllbudgetBi)
    {
        return classAllbudgetBiMapper.updateClassAllbudgetBi(classAllbudgetBi);
    }

    /**
     * 批量删除ClassAllbudgetBi
     * 
     * @param years 需要删除的ClassAllbudgetBi主键
     * @return 结果
     */
    @Override
    public int deleteClassAllbudgetBiByYears(String[] years)
    {
        return classAllbudgetBiMapper.deleteClassAllbudgetBiByYears(years);
    }

    /**
     * 删除ClassAllbudgetBi信息
     * 
     * @param year ClassAllbudgetBi主键
     * @return 结果
     */
    @Override
    public int deleteClassAllbudgetBiByYear(String year)
    {
        return classAllbudgetBiMapper.deleteClassAllbudgetBiByYear(year);
    }
}
